package com.xycake.service;

import com.xycake.dao.UserMapper;
import com.xycake.entity.User;
import com.xycake.entity.UserExtend;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserService {

    @Autowired
    private UserMapper userMapper;


    public User selectAllByUser(String username) {
        return userMapper.selectByUsername(username);
    }

    public void insertUserById(User user) {
        userMapper.updateByPrimaryKey(user);
    }
}
